package cn.hairui.blog.service.impl;

import cn.hairui.blog.model.Whisper;
import cn.hairui.blog.repository.WhisperRepository;
import cn.hairui.blog.service.WhisperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author lihairui
 * @version V1.0
 * @date: 2019/8/3 1:06
 */
@Service(value = "whisperService")
public class WhisperServiceImpl implements WhisperService {

    @Autowired
    private WhisperRepository whisperRepository;

    @Override
    public List<Whisper> findGust() {
        return whisperRepository.findGust();
    }

    @Override
    public List<Whisper> list() {
        return whisperRepository.list();
    }

    @Override
    public List<Map> findMessageByWhisperId(int whisperId) {
        return whisperRepository.findMessageByWhisperId(whisperId);
    }
}
